<div class="paylog">

<h3><{"Summary"|msg}></h3>

<{include file="db:`$paylog.dirname`.tab_menu.tpl"}>

<form action="index.php" method="get" class="dateNavi">
<input type="hidden" name="controller" value="summary" />
<input type="hidden" name="book_id" value="<{$paylog.book_id}>" />
<input type="text" name="start" value="<{$paylog.start}>" size="10" maxlength="10" />
-
<input type="text" name="end" value="<{$paylog.end}>" size="10" maxlength="10" />
<input type="submit" value="<{"Submit"|msg}>" class="minibutton icon search" />
</form>

<table class="outer">

<tr>
<th class="w50per"><{"Total"|msg}></th>
<th class="w50per"><{"Per Day"|msg}>(<{"{1} days average"|msg:$paylog.per.days}>)</th>
</tr>

<tr class="even">
<td class="alignRight"><{$paylog.total|number_format}></td>
<td class="alignRight"><{$paylog.per.average|number_format}></td>
</tr>

</table>

<{foreach from=$paylog.groups item="group"}>
<table class="outer left w30per">

<tr>
<th colspan="2"><{$group.name}></th>
</tr>

<{foreach from=$group.tags item="tag"}>
<tr>
<td class="head w40per"><{$tag.name}></td>
<td class="<{cycle values="odd,even"}> alignRight"><{$tag.price|number_format}></td>
</tr>
<{/foreach}>

</table>
<{/foreach}>

</div>